@mixin borderradius {
    border-radius: 5px;
}
@mixin trans {
    transition:all 0.2s linear;
}
*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    color: #bebec0;
}
html,body{
    width: 100%;
    background-color: #15171E;
    position: relative;
    >div{
        width: 100%;
        >div{
            width: 1600px;
            margin: 0 auto;
        }
    }
}
// 点击右上角的遮罩层
.allwrap{
    background-color: rgba(0, 0, 0,0.4);
    position: absolute;
    z-index: 900;
    display: none;
}
// 顶部
.top{
    height: 88px;
    position: relative;
    span{
        padding-top: 37px;
        position: absolute;
        transition: all 0.2s linear;
        a:hover{
            color: #fff;
        }
    }
    span:nth-child(2){
        right: 11%;
    }
    span:nth-child(3){
        right: 8%;
    }
    span:nth-child(4){
        right: 2%;
        float: right;
        text-align: right;
        z-index: 901;
        div{
            float: right;
            border: 5px solid #15171E;
            border-top: 5px solid #bebec0;
            margin-top: 7px;
        }
        ul{
            display: none;
            position: absolute;
            right: -44%;
            width: 326px;
            background-color: #1A1C23;
            z-index: 901;
            border: 1px solid #222830;
            @include borderradius();
            .loginbtn{
                border-bottom:1px solid #272930;
                height: 90px;
                text-align: center;
                padding-top: 10px;
                button{
                    background:#148EFF;    
                    outline:none;   
                    border:none;
                    color: #fff;
                    @include borderradius();
                    width: 286px;
                    height: 40px;
                    font-size: 18px;
                    margin-top: 15px;    
                }
                button:hover{
                    border: 3px solid #47A6FF;
                }
            }
            li:not(.loginbtn){
                width: 100%;
                height: 60px;
                line-height: 60px;
                text-align: left;
                padding-left: 10px;
                box-sizing: border-box;
                img{
                    margin-right: 10px;
                }
            }
            li:not(.loginbtn):hover{
                background-color: #272930;
                a{
                    color: #fff;
                }
            }
        }
    }
    span:nth-child(4):hover div{
        border: 5px solid #15171E;
        border-bottom: 5px solid #fff;
        color: #fff;
        margin-top: 2px;
    }
}
// 导航
.nav_search_like{
    // position: fixed;
    left: 0;
    top: 0;
    right: 0;
    margin: auto;
    height: 50px;
    z-index: 899;
    background-color: #15171E;
    >div{
        float: left;
        height: 50px;
        background-color: #25262C;
        @include borderradius();
        margin-right: 25px;
    }
    >div:not(div:nth-child(1)):hover{
        background-color: #303237 !important;
        @include trans();
    }
    // 导航左
    .showlist{
        width: 1050px;
        line-height: 50px;
        text-align: left;
        >div{
            @include borderradius();
            height: 50px;
            width: 80px;
            text-align: center;
            user-select: none;
            img{
                @include trans();
                margin-left: 5px;
                vertical-align: middle;
            }
        }
        >div:hover{
            background-color: #303237 !important;
        }
        // 左点击列表
        nav{
            width: 750px;
            border: 1px solid #36383E;
            background-color: #1A1C23;
            display: none;
            position: relative;
            z-index: 899;
            ul{
                float: left;
                font-size: 14px;
                p{
                    padding-left: 20px;
                }
                img{
                    width: 14px;
                    vertical-align: middle;
                    margin-right: 5px;
                }
                li{
                    margin-right: 20px;
                    margin-left: 10px;
                    @include trans();
                    @include borderradius();
                    padding-left: 10px;
                }
                li:hover{
                    background-color: #272930;
                    color: #fff;
                }
            }
            ul:first-child{
                width: 500px;
                li{
                    height: 35px;
                    line-height: 35px;
                    width: 210px;
                    float: left;
                }
            }
            ul:nth-child(2){
                width: 250px;
                li>span{
                    float: right;
                    vertical-align: baseline;
                }
            }
        }
        nav:after{
            content:"";
            clear:both;
            display:block;
            height:0;
            visibility:hidden;
        }
    }
    // 导航搜索
    .search{
        width: 325px;
        text-align: right;
        input{
            width: calc(100% - 100px);
            background:none;    
            outline:none;   
            border:none;
            padding-left: 40px;
            line-height: 50px;
            background-image: url(../images/nav/search.jpg);
            background-repeat: no-repeat;
            background-position: 10px;
        }
        :hover{
            color: #fff;
        }
        button{
            width: 50px;
            height: 50px;
            background:none;    
            outline:none;   
            border:none;
            font-size: 20px;
            opacity: 0;
        }
        button:hover{
            color: #fff;
        }
    }
    // 导航收藏
    .like{
        width: 50px;
        img{
            margin: 18px;
        }
    }
    // 导航点数
    .battlenetcount{
        width: 100px;
        margin-right: 0;
        line-height: 50px;
        text-align: center;
        user-select: none;
        position: relative;
        z-index: 899;
        img{
            @include trans();
            margin-left: 5px;
            vertical-align: middle;
        }
        // 需要做成点击事件,旋转，display
        ul{
            display: none;
            width: 200px;
            font-size: 14px;
            text-align: left;
            border: 1px solid #36383E;
            margin-left: -100px;
            background-color: #1A1C23;
            li{
                padding: 5px 10px;
                box-sizing: border-box;
                height: 35px;
                line-height: 25px;
                width: 200px;
                @include trans();
                @include borderradius();
                span{
                    float: right;
                    vertical-align: baseline;
                }
            }
            li:hover{
                background-color: #272930;
                color: #fff;
            }
        }
    }
}
// 轮播
.lunbo{
    height: 450px;
    margin-top: 30px;
    position: relative;
    // 轮播
    .swiper {
        height: 450px;
        text-align: right;
        // 切换按钮
        .swiper-button-prev,.swiper-button-next{
            opacity: 0;
            border: 1px solid #696B6F;
            color: #fff;
            padding: 15px 3px;
            @include borderradius();
            @include trans();
            background-color: #15171E;
        }
        // 分页器
        .swiper-pagination{
            // 当前颜色
            .swiper-pagination-bullet-active {
                background-color: #148EFF
            }
            span{
                width: 40px;
                height: 5px;
                border-radius: 5px;
                background-color: #85868A;  
                opacity: 1;  
            }
            span:hover{
                background-color: #fff;
                opacity: 1;  
            }
        }
    }
    .swiper:hover{
        .swiper-button-prev,.swiper-button-next{
            opacity: 1;
        }
    }
    // 轮播文本
    .swiper-wrapper{
        >div{
            >img{
                width: 1600px;
            }
        }
        .lunbo_wrap{
            position: absolute;
            top: 15%;
            left: 10%;
            width: 320px;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
            p{
                color: #fff ;
            }
            img{
                width: 320px;
            }
            button{
                background:#148EFF;    
                outline:none;   
                border:none;
                color: #fff;
                @include borderradius();
                width: 280px;
                height: 60px;
                font-size: 20px;
                font-weight: 700;
                margin-top: 15px;
            }
        }
    }
}
// 游戏图标展示部分
.gameicon{
    height: 54px;
    background-color: #23252B;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
    padding-top: 20px;
    span{
        color: #fff;
        font-weight: 700;
        font-size: 14px;
    }
    img{
        vertical-align: middle;
        width: 34px;
        margin-left: 20px;
    }
}

// 商品页
.shop{
    padding-bottom: 40px;
    >p{
        color: #fff;
        height: 76px;
        font-size: 26px;
        font-weight: 700;
    }
    // 商品展示具体
    >div{
        float: left;
        width: 300px;
        height: 388px;
        margin-right: 25px;
        @include borderradius();
        margin-bottom: 24px;
        position: relative;
        overflow: hidden;
        >img{
            width: 300px;
            @include borderradius();
        }
        >div{
            width: 300px;
            box-sizing: border-box;
            position: absolute;
            background-color: #25262C;
            height: calc(100% - 160px - 22px);
            top:160px;
            padding: 22px 20px 0 20px;
            border-radius: 0 0 5PX 5PX;
            @include trans();
            .tag{
                font-size: 12px;
                img{
                    vertical-align: middle;
                    height: 20px;
                }
            }
            .desc{
                font-size: 18px;
                color: #fff;
                font-weight: 700;
            }
            .hightlight{
                font-size: 14px;
                color: #FFB400;
            }
            .type{
                font-size: 14px;
            }
            >div{
                width: 260px;
                position: absolute;
                bottom: 10px;
                margin-top: 36px;
                @include trans();
                // 有优惠
                .payprice{
                    color: #6CDB00;
                    font-weight: 700;
                }
                .price{
                    color: #949497;
                    text-decoration: line-through;
                }
                .payoff{
                    text-align: center;
                    float: right;
                    width: 50px;
                    height: 24px;
                    color: #000;
                    background-color: #6CDB00;
                    @include borderradius();
                }
                // 无优惠
                .no_payoffPrice{
                    color: #fff;
                }
                // 不用钱
                .nomoney{
                    color: #fff;
                    img{
                        margin-right: 5px;
                        height: 22px;
                        vertical-align: middle;
                    }
                }
            }
        }
        >div:hover{
            background-color: #313339;
            top:140px;
            height: calc(100% - 160px - 2px);
            >div{
                margin-top: 56px;
            }
        }
    }
    // 最后一个无又边距
    .noright{
        margin-right: 0;
    }
}
.shop::after{
    content: '';
    display: block;
    overflow: hidden;
    height: 0;
    clear: both;
}
// 下载
.download{
    width: 100%;
    height: 464px;
    border-top: 1px solid #4D4E54;
    border-bottom: 1px solid #4D4E54;
    background-image: linear-gradient(to left, #413735, #3b3032, #33292f, #28242d, #1b1f29);
    >div:nth-child(1){
        float: left;
        padding-top: 50px;
        margin-left: calc((100% - 1600px) / 2);
        >h1{
            color: #fff;
            font-size: 44px;
            height: 68px;
        }
        p{
            height: 30px;
            line-height: 30px;
            font-size: 20px;
            font-weight: 700;
            img{
                vertical-align: middle;
                margin-right: 12px;
            }
        }
        p:nth-child(4){
            padding-bottom: 50px;
        }
        >a{
            color: #fff;
            float: left;
            height: 40px;
            box-sizing: border-box;
            @include borderradius();
            text-align: center;
            line-height: 40px;
            margin-bottom: 40px;
        }
        a:nth-child(5){
            width: 300px;
            background-color: #0074E0;
        }
        a:nth-child(5):hover{
            border: 1px solid #47A6FF;
            line-height: 38px;
        }
        a:nth-child(6){
            width: 128px;
            background-color: #36383F;
            margin-left: 16px;
        }
        a:nth-child(6):hover{
            border: 1px solid #5B5B62;
            line-height: 38px;
        }
        p:nth-child(7){
            font-weight: 400;
            font-size: 14px;
            a{
                text-decoration: underline;
                color: #148EF1;
                padding-left: 5px;
            }
        }
    }
    >div:nth-child(2){
        float: right;
        padding-top: 50px;
        margin-right: calc((100% - 1600px) / 2);
        position: relative;
        img:nth-child(1){
            opacity: 0.5;
            width: 280px;
            right: 550px;
            top: 100px;
            position: absolute;
        }
        img:nth-child(2){
            position: relative;
            z-index: 1;
            width: 626px;
            font-size: 16px;
        }
    }
}
// 下载
.bottom{
    height: 600px;
    text-align: center;
    padding-top: 80px;
    >img{
        width: 350px;
    }
    .app{
        margin: 0 auto;
        width: 500px;
        padding-bottom: 40px;
        p{
            a{
                color: #148EFF;
                img{
                    margin: 0 5px;
                    vertical-align: baseline;
                }
            }
            a:hover{
                color: #3CB6FF;
            }
        }
    }
    .declaration{
        width: 500px;
        font-size: 12px;
        padding-bottom: 30px;
        margin: 0 auto;
        p{
            color: #8A8B8F;
        }
        ul{
            display: flex;
            justify-content: center;
            li{
                float: left;
                border-right: 1px solid #5C5D62;
                padding: 0 8px;
            }
            li:nth-child(3){
                border-right: 0;
            }
            li:hover{
                color: #fff;
            }
        }
        a{
            transition: all 0.1s linear;
        }
        a:hover{
            color: #fff;
        }
    }
    .plate{
        width: 100%;
        ul{
            font-size: 12px;
            width: 460px;
            margin: auto;
            li{
                height: 24px;
                a:hover{
                    color: #fff;
                }

                span:nth-child(1){
                    border-right: 1px solid #5C5D62;
                    padding-right: 5px;
                }sj
                span:nth-child(2){
                    border-right: 0;
                    padding-left: 5px;
                }
            }
            
        }
    }
    .notice{
        margin: 0 auto;
        width: 500px;
        font-size: 12px;
        p{
            height: 24px;
            span{
                border-right: 1px solid #5C5D62;
                padding-right: 10px;
                padding-left: 10px;
            }
            span:nth-child(3){
                border-right: 0;
            }
        }
    }
}
// 返回顶部
.toTOP{
    width: 50px;
    height: 50px;
    border: 1px solid #4D4E54;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 899;
    padding: 15px;
    box-sizing: border-box;
    @include borderradius();
    display: none;
}
.toTOP:hover{
    border: 1px solid #696B6F;
}